-- GENERATED SPELL FOR [Brittle Revenant] --


function spell0_30160(pUnit, Event) --@Mace Smash,n/a--
pUnit:FullCastSpellOnTarget(50731,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30160', 2274, 1)
end

function spell1_30160(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30160', 8286, 1)
end

function Sorts_30160(pUnit, Event)
local choix_sorts_30160 = math.random(0, 1)
if choix_sorts_30160 == 0 then
pUnit:RegisterEvent('spell0_30160', 1, 1)
end
if choix_sorts_30160 == 1 then
pUnit:RegisterEvent('spell1_30160', 1, 1)
end
end

function mob30160_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30160', math.random(1500, 3000), 1)
end

function mob30160_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30160_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30160_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30160, 1, 'mob30160_Action')
RegisterUnitEvent(30160, 2, 'mob30160_Leave')
RegisterUnitEvent(30160, 3, 'mob30160_Kill')
RegisterUnitEvent(30160, 4, 'mob30160_Die')
